let DynamicsData = require("./DynamicsData");
cc.Class({
    extends: cc.Component,

    properties: {
        curScoreLabel: cc.Label,
        maxScoreLabel: cc.Label,
        reStartBtn: cc.Button,
    },



    onLoad() {
        // this.curScore = cc.gameData.curScore;
        // this.maxScore = cc.gameData.maxScore;
        this.curScore = DynamicsData.getData("curScore");
        this.maxScore = DynamicsData.getData("maxScore");
        this.curScoreLabel.string = `当前分数：${this.curScore}`;
        this.maxScoreLabel.string = `最高分数：${this.maxScore}`;
        this.reStartBtn.node.on("click", function () {
            cc.director.loadScene("Menu");
        });
    },

    start() {

    },

    // update (dt) {},
});
